LassoScript Utility
Basics Browse Detail

[File->SetEncoding]

Tag Link [File->SetEncoding] Category File
Type Member Source Available Yes
Support Preferred Version 8.5
Change New Data Source Any
Output Type None Security None
Implementation Sets Lasso 8.5

Description

[File->SetEncoding] sets the character set which will be used to automatically encode data that is read from the file using [File->ReadString] or written to the file using [File->Write].

Syntax

[Var: 'myFile' = (File: 'myfile.txt')]
[$myFile->(SetEncoding: 'iso-8859-1')]
[$myFile->(Write: 'Data')]
[$myFile->(ReadString: 32768)]

Parameters

Required Parameters
Character Set The character set which should be used to automatically translate strings passed to [File->Write] and read from [File->ReadString].

Examples

See the Lasso 8 Language Guide for examples of how to use this tag.